package bat.iog.hytool.pattern.behavioral.Filter.demo03;

/**
 * 类描述：责任链模式测试类
 *
 * @author lzy
 *
 */
public class Test {

    public static void main(String[] args) {
        //构造者模式创建对象(根据当前需要设置相关的属性)
        Request request = new Request.Builder().setName("张三").setDays(5)
                .setReason("事假").build();
        //
        ChainOfResponsibilityClient client = new ChainOfResponsibilityClient();
        Result result = client.execute(request);

        System.out.println("结果：" + result.toString());
        
        //1.请求
        //2.配置责任链
        //3.构建处理器
        //4.
    }
}